#include <wiringPi.h>
#include <stdio.h>
 
#define BuzzerPin      0
 
int main(void)
{
    if(wiringPiSetup() == -1){ //when initialize wiring failed,print messageto screen
        printf("setup wiringPi failed !");
        return 1; 
    }
//  printf("linker LedPin : GPIO %d(wiringPi pin)\n",VoicePin); //when initialize wiring successfully,print message to screen
     
    pinMode(BuzzerPin,  OUTPUT);
 
    while(1){
            digitalWrite(BuzzerPin, HIGH);
            delay(100);
            digitalWrite(BuzzerPin, LOW);
            delay(100); 
    }
 
    return 0;
}